package com.woniuxy.controller;

import com.woniuxy.entity.MyDataSourceEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 马宇航
 * @Todo: TODO
 * @DateTime: 22/04/06/0006 上午 10:59
 * @Component: 成都蜗牛学苑
 **/
@RestController
public class MyController {
    @Autowired
    MyDataSourceEntity myDataSourceEntity;
    @RequestMapping("/hello")
    public String test(){
        System.out.println(myDataSourceEntity.toString());
        return "欢迎来到蜗牛学苑！";
    }
}
